#include "apiordermgr.h"
#include "cache.h"
#include "DbPart.h"
#include "minutelisten.h"



ApiOrderMgr::ApiOrderMgr()
{
    // m_mgr.set_load_handle(std::bind(&ApiOrderMgr::Load, this, std::placeholders::_1, std::placeholders::_2));

    // MinuteListen::Instance()->Register("ApiOrderMgr" , [&](std::int64_t tick){
        
    // });
}
ApiOrderMgr::~ApiOrderMgr()
{
}

bool ApiOrderMgr::CreateExceptionOrder(const api_order::ApiOrder& api_order)
{
    return CDbPart::Instance()->CreateApiOrderException(api_order);
}

bool ApiOrderMgr::BatchCreateExceptionOrder(const std::vector<api_order::ApiOrder>& api_order_group)
{
    return CDbPart::Instance()->BatchCreateApiOrderException(api_order_group);
}

bool ApiOrderMgr::FinishExceptionOrder(const api_order::ApiOrder& api_order)
{
    return CDbPart::Instance()->FinishApiOrderException(api_order, 1);
}





